//
//  ViewController.swift
//  UIAppearance定制UI元素
//
//  Created by quanhao huang on 2019/9/28.
//  Copyright © 2019 demo. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
    
    @IBOutlet weak var button: UIButton!
    @IBOutlet weak var progressView: UIProgressView!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.button.tintColor = UIColor.red
        
        //tint color 可以改变大部分控件的颜色，但有些则不行
        self.progressView.progressTintColor = UIColor.red
        
        //appearance 修改所有UIButton的Tint Color
        UIButton.appearance().tintColor = UIColor.red
    }


}

